package cn.jsc.product.domain;

import cn.jsc.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 实体类 服务
 */
@Data
public class Product extends BaseDomain {
    //服务名称
    private String name;
    //存放fastdfs地址，多个资源使用，分割
    private String resources;
    //成本价
    private BigDecimal costprice;
    //售价
    private BigDecimal saleprice;
    //下架时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    //上架时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;
    //状态：0下架，1上架
    private Integer state;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime =new Date();
    //销售数量
    private Long salecount;

    //服务细节
    private ProductDetail detail = new ProductDetail();

    //支付方式
    private Integer payType;
}
